﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000ADB RID: 2779
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MatchThreeBirdInfo : IMessage<MatchThreeBirdInfo>, IMessage, IEquatable<MatchThreeBirdInfo>, IDeepCloneable<MatchThreeBirdInfo>, IBufferMessage
	{
		// Token: 0x17002310 RID: 8976
		// (get) Token: 0x06007C57 RID: 31831 RVA: 0x0014BDB9 File Offset: 0x00149FB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MatchThreeBirdInfo> Parser
		{
			get
			{
				return MatchThreeBirdInfo._parser;
			}
		}

		// Token: 0x17002311 RID: 8977
		// (get) Token: 0x06007C58 RID: 31832 RVA: 0x0014BDC0 File Offset: 0x00149FC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MatchThreeBirdInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002312 RID: 8978
		// (get) Token: 0x06007C59 RID: 31833 RVA: 0x0014BDD2 File Offset: 0x00149FD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MatchThreeBirdInfo.Descriptor;
			}
		}

		// Token: 0x06007C5A RID: 31834 RVA: 0x0014BDD9 File Offset: 0x00149FD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MatchThreeBirdInfo()
		{
		}

		// Token: 0x06007C5B RID: 31835 RVA: 0x0014BDE4 File Offset: 0x00149FE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MatchThreeBirdInfo(MatchThreeBirdInfo other) : this()
		{
			this.birdTopScore_ = other.birdTopScore_;
			this.pos_ = other.pos_;
			this.birdId_ = other.birdId_;
			this.count_ = other.count_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007C5C RID: 31836 RVA: 0x0014BE38 File Offset: 0x0014A038
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MatchThreeBirdInfo Clone()
		{
			return new MatchThreeBirdInfo(this);
		}

		// Token: 0x17002313 RID: 8979
		// (get) Token: 0x06007C5D RID: 31837 RVA: 0x0014BE40 File Offset: 0x0014A040
		// (set) Token: 0x06007C5E RID: 31838 RVA: 0x0014BE48 File Offset: 0x0014A048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BirdTopScore
		{
			get
			{
				return this.birdTopScore_;
			}
			set
			{
				this.birdTopScore_ = value;
			}
		}

		// Token: 0x17002314 RID: 8980
		// (get) Token: 0x06007C5F RID: 31839 RVA: 0x0014BE51 File Offset: 0x0014A051
		// (set) Token: 0x06007C60 RID: 31840 RVA: 0x0014BE59 File Offset: 0x0014A059
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Pos
		{
			get
			{
				return this.pos_;
			}
			set
			{
				this.pos_ = value;
			}
		}

		// Token: 0x17002315 RID: 8981
		// (get) Token: 0x06007C61 RID: 31841 RVA: 0x0014BE62 File Offset: 0x0014A062
		// (set) Token: 0x06007C62 RID: 31842 RVA: 0x0014BE6A File Offset: 0x0014A06A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BirdId
		{
			get
			{
				return this.birdId_;
			}
			set
			{
				this.birdId_ = value;
			}
		}

		// Token: 0x17002316 RID: 8982
		// (get) Token: 0x06007C63 RID: 31843 RVA: 0x0014BE73 File Offset: 0x0014A073
		// (set) Token: 0x06007C64 RID: 31844 RVA: 0x0014BE7B File Offset: 0x0014A07B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Count
		{
			get
			{
				return this.count_;
			}
			set
			{
				this.count_ = value;
			}
		}

		// Token: 0x06007C65 RID: 31845 RVA: 0x0014BE84 File Offset: 0x0014A084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MatchThreeBirdInfo);
		}

		// Token: 0x06007C66 RID: 31846 RVA: 0x0014BE94 File Offset: 0x0014A094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MatchThreeBirdInfo other)
		{
			return other != null && (other == this || (this.BirdTopScore == other.BirdTopScore && this.Pos == other.Pos && this.BirdId == other.BirdId && this.Count == other.Count && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007C67 RID: 31847 RVA: 0x0014BF00 File Offset: 0x0014A100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BirdTopScore != 0U)
			{
				num ^= this.BirdTopScore.GetHashCode();
			}
			if (this.Pos != 0U)
			{
				num ^= this.Pos.GetHashCode();
			}
			if (this.BirdId != 0U)
			{
				num ^= this.BirdId.GetHashCode();
			}
			if (this.Count != 0U)
			{
				num ^= this.Count.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007C68 RID: 31848 RVA: 0x0014BF8A File Offset: 0x0014A18A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007C69 RID: 31849 RVA: 0x0014BF92 File Offset: 0x0014A192
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007C6A RID: 31850 RVA: 0x0014BF9C File Offset: 0x0014A19C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Pos != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Pos);
			}
			if (this.BirdTopScore != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.BirdTopScore);
			}
			if (this.Count != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Count);
			}
			if (this.BirdId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.BirdId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007C6B RID: 31851 RVA: 0x0014C030 File Offset: 0x0014A230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BirdTopScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BirdTopScore);
			}
			if (this.Pos != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Pos);
			}
			if (this.BirdId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BirdId);
			}
			if (this.Count != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Count);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007C6C RID: 31852 RVA: 0x0014C0B8 File Offset: 0x0014A2B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MatchThreeBirdInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BirdTopScore != 0U)
			{
				this.BirdTopScore = other.BirdTopScore;
			}
			if (other.Pos != 0U)
			{
				this.Pos = other.Pos;
			}
			if (other.BirdId != 0U)
			{
				this.BirdId = other.BirdId;
			}
			if (other.Count != 0U)
			{
				this.Count = other.Count;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007C6D RID: 31853 RVA: 0x0014C130 File Offset: 0x0014A330
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007C6E RID: 31854 RVA: 0x0014C13C File Offset: 0x0014A33C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 88U)
				{
					if (num == 40U)
					{
						this.Pos = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.BirdTopScore = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.Count = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.BirdId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002F7E RID: 12158
		private static readonly MessageParser<MatchThreeBirdInfo> _parser = new MessageParser<MatchThreeBirdInfo>(() => new MatchThreeBirdInfo());

		// Token: 0x04002F7F RID: 12159
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002F80 RID: 12160
		public const int BirdTopScoreFieldNumber = 11;

		// Token: 0x04002F81 RID: 12161
		private uint birdTopScore_;

		// Token: 0x04002F82 RID: 12162
		public const int PosFieldNumber = 5;

		// Token: 0x04002F83 RID: 12163
		private uint pos_;

		// Token: 0x04002F84 RID: 12164
		public const int BirdIdFieldNumber = 15;

		// Token: 0x04002F85 RID: 12165
		private uint birdId_;

		// Token: 0x04002F86 RID: 12166
		public const int CountFieldNumber = 14;

		// Token: 0x04002F87 RID: 12167
		private uint count_;
	}
}
